<div class="fm-content">
  <!-- 最上面标题栏 -->
  <div class="title">
    <i nz-icon [type]="'desktop'"></i>
    &nbsp;&nbsp;常规通道数据采集记录表
  </div>
  <!-- 内容 -->
  <div class="work">

    <!-- 查询框 -->
    <div class="top">
    <!-- first-input -->


          <nz-select class="fm-input first-input" [(ngModel)]="fs.queryObject['subject']" (nzOpenChange)="cms_sjryDic.load('0')"
                     [nzPlaceHolder]="'受检人员'">
            <nz-option *ngFor="let option of cms_sjryDic.datas" [nzLabel]="option.display" [nzValue]="option.id">
            </nz-option>
            <nz-option *ngIf="cms_sjryDic.isLoading" nzDisabled nzCustomContent>
              <i nz-icon type="loading" class="loading-icon"></i>加载中...
            </nz-option>
          </nz-select>
            <nz-button-group>
              <button nz-button nzType="primary" (click)="fs.loadData(true)">查询</button>
              <button nz-button (click)="fs.resetQueryObject() && fs.loadData(true)">重置</button>
            </nz-button-group>
      <div class="tool-right">
        <nz-button-group>
          <button *ngIf="ss.mi.sa || ss.mi.xjxllkcgtdxz" nz-button [nzType]="'primary'" (click)="editRow(false)">新增</button>
          <button *ngIf="ss.mi.sa || ss.mi.xjxllkcgtdsc" nz-popconfirm nzTitle="确认删除选择项?" (nzOnConfirm)="fs.delEntitys()" nzPlacement="bottomRight"
                  nz-button>删除</button>
          <button nz-button (click)="fs.export('xjmh_xjxlcgtd.html', '小件行李旅客常规通道.xls')">导出</button>
          <nz-upload nzAction="{{ fs.getExcelUploadUrl() }}" [nzLimit]="1" [nzHeaders]="ffs.fileHeaders"
                     [nzFilter]="fs.excelFilters" [nzAccept]="'.xls,.xlsx'" (nzChange)="excelHandleChange($event)">
            <button *ngIf="ss.mi.sa || ss.mi.xjxllkcgtdxz" nz-button>导入</button>
          </nz-upload>
        </nz-button-group>
        </div>

    </div>

    <!-- 右则样表单主体 -->
    <div class="work-content">
      <div class="table">
        <nz-table nzSize="middle" nzShowSizeChanger
        [nzPageSizeOptions]='[ 10, 15, 20, 30, 40, 50 ]'
        [nzFrontPagination]="false"
        [nzData]="fs.datas"
        [nzLoading]="fs.isLoading || fs.isDeleing"
        [nzTotal]="fs.rowsCount"
        [(nzPageIndex)]="fs.pageIndex"
        [(nzPageSize)]="fs.pageSize"
        (nzPageIndexChange)="fs.loadData()"
        (nzPageSizeChange)="fs.loadData(true)">
        <thead>
            <tr>
                <th nzShowCheckbox [(nzChecked)]="fs.allChecked"
                    [nzIndeterminate]="fs.indeterminate"
                    (nzCheckedChange)="fs.checkAll($event)"></th>
				<th nzWidth="10%">通道
</th>
				<th nzWidth="10%">记录日期</th>

				<th nzWidth="10%">受检人员</th>
				<th nzWidth="10%">安检员数</th>
				<th nzWidth="10%">总受检人数</th>
				<th nzWidth="10%">总行李数</th>
				<th nzWidth="10%">手提行李安全检查设备</th>
				<th nzWidth="10%">通道类型</th>
				<th nzWidth="10%">通道运行状况</th>
				<th nzWidth="10%">备注</th>

            </tr>
        </thead>
        <tbody>
            <tr *ngFor="let data of fs.datas">
                <td nzShowCheckbox [(nzChecked)]="data.checked" (nzCheckedChange)="fs.refreshCheckStatus()">
                </td>
              <td><span (click)="editRow(data)" class="form-edit">{{data.channel}}</span></td>
				<td>{{data.recorddate | date:'yyyy-MM-dd' }}</td>
				<td>{{data.subjectName}}</td>
            		<td>{{data.screenerscount}}</td>
            		<td>{{data.subjectcount}}</td>
            		<td>{{data.suitcasescount}}</td>
				<td>{{data.equipmentName}}</td>
				<td>{{data.channeltypeName}}</td>
				<td>{{data.runningstatusName}}</td>
            		<td>{{data.remark}}</td>
            </tr>
        </tbody>
    </nz-table>
      </div>
    </div>
  </div>
</div>
